import QtQuick 2.12
import QtQuick.Controls 2.5

ApplicationWindow {
    visible: true
    width: 800
    height: 600
    title: qsTr("QML Tabs Study")

    SwipeView {
        id: swipeView
        anchors.fill: parent
        currentIndex: tabBar.currentIndex
        PageSampeWdt {
        }

        Page1 {
        }

        Page2 {
        }

        Page3 {
        }

        Page4 {
        }
        PageVerticalTab {
        }
    }

    footer: TabBar {
        id: tabBar
        currentIndex: swipeView.currentIndex

        TabButton {
            text: qsTr("Page Sampe Wdt")
        }
        TabButton {
            text: qsTr("Page 1")
        }
        TabButton {
            text: qsTr("Page 2")
        }
        TabButton {
            text: qsTr("Page 3")
        }
        TabButton {
            text: qsTr("Page 4")
        }
        TabButton {
            text: qsTr("垂直选项卡")
        }
    }
}
